﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyMovieSystem
{
    [Serializable]
    /// <summary>
    /// 用户类
    /// </summary>
   public  class User:Role
    {
       /// <summary>
       /// 想看电影
       /// </summary>
       public List<Movie> WantMovie { get; set; }
       /// <summary>
       /// 看过电影
       /// </summary>
       public List<Movie> LookOffMovie { get; set; }
       /// <summary>
       /// 等级
       /// </summary>
       public int Level { get; set; }
       /// <summary>
       /// 积分
       /// </summary>
       public int Score { get; set; }

       public User() 
       {
           this.Super_seller = false;
           WantMovie = new List<Movie>();
           LookOffMovie = new List<Movie>();
       }
       public User(string name, string pwd)
           : base(name, pwd)
       {
           this.Super_seller = false;
           WantMovie = new List<Movie>();
           LookOffMovie = new List<Movie>();
           this.Level = 1;
           this.Score = 100;
       }


    }
}
